import request from '@/router/axios';

/**
 * 添加宠物商品配置
 */
export const addPetConfig = (data) => {
  return request({
    url: '/shop-core/pet/goods/config',
    method: 'post',
    data,
  });
};

/**
 * 更新宠物商品配置
 */
export const updatePetConfig = (data) => {
  return request({
    url: '/shop-core/pet/goods/config',
    method: 'put',
    data,
  });
};
/**
 * 获取宠物商品配置
 */
export const getPetConfig = (petId) => {
  return request({
    url: `/shop-core/pet/goods/config/list/${petId}`,
    method: 'get',
  });
};
